-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: multiple image preview [WPB-8801] #3004
Conversation
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
Build 4745 failed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3004 +/- ##
===========================================
+ Coverage 44.29% 44.36% +0.07%
===========================================
Files 448 450 +2
Lines 14519 14517 -2
Branches 2493 2497 +4
===========================================
+ Hits 6431 6441 +10
+ Misses 7385 7366 -19
- Partials 703 710 +7
Continue to review full report in Codecov by Sentry.
|
APKs built during tests are available here. Scroll down to Artifacts! |
Build 4747 succeeded. The build produced the following APK's: |
app/src/main/kotlin/com/wire/android/ui/home/conversations/AssetTooLargeDialog.kt
Outdated
Show resolved
Hide resolved
VerticalSpace.x16() | ||
Text( | ||
assetName, | ||
style = MaterialTheme.wireTypography.title02.copy(color = MaterialTheme.colorScheme.onBackground), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: do not apply color to the style, apply it directly to the Text
style = MaterialTheme.wireTypography.title01.copy( | ||
fontWeight = FontWeight.W900, | ||
color = MaterialTheme.colorScheme.onPrimary | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: it would be better to create a dedicated one in WireTypography
as for instance designs may want to make the font size different than title01
on other screen sizes, especially when this custom typography is already used twice (also in AssetExtensionPreviewTile
)
app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/AssetFilePreview.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/AssetTilePreview.kt
Outdated
Show resolved
Hide resolved
core/ui-common/src/main/kotlin/com/wire/android/ui/common/preview/PreviewMultipleThemes.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work 👏🏻
I just have some either question comments or nitpick comments
app/src/main/kotlin/com/wire/android/ui/home/conversations/AssetTooLargeDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/AssetFilePreview.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/ImagesPreviewScreen.kt
Outdated
Show resolved
Hide resolved
} | ||
} | ||
} | ||
|
||
private suspend fun sendMessages(messageBundleList: List<MessageBundle>) { | ||
val jobs: MutableCollection<Job> = mutableListOf() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to somehow cancel this jobs?
A possible test to run:
- send max number of images possible (try with big 4k images, so it takes time)
- while they are being sent, log out and login again to same account
- double check if you have any
can't access DB
issue
Multiple times we had this issue was because of logout and login again but keeping some old jobs
app/src/main/kotlin/com/wire/android/ui/home/conversations/sendmessage/SendMessageViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/sharing/SendMessagesSnackbarMessages.kt
Show resolved
Hide resolved
Build 4777 failed. |
Build 4778 failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements!
Just one small change and good to go from my side 💪🏻
app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/AssetFilePreview.kt
Outdated
Show resolved
Hide resolved
APKs built during tests are available here. Scroll down to Artifacts! |
Build 4780 succeeded. The build produced the following APK's: |
Build 4996 failed. |
Quality Gate passedIssues Measures |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 4998 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
TODO
Attachments (Optional)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.